package cn.cqie.attendance.teacher.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wqh
 * @date 2021/7/7 17:42
 */
@Data
@Accessors(chain = true)
@ApiModel(value="HomeworkDetail对象", description="作业详情")
public class HomeworkDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "作业主题")
    private String homeworkTheme;

    @ApiModelProperty(value = "作业内容")
    private String workContent;

    @ApiModelProperty(value = "发布人")
    private String teacherName;

    @ApiModelProperty(value = "附件")
    private String address;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "计划完成时间")
    private Date endTime;
}
